win32: Stop using gdk_surface_new_temp
authorMatthias Clasen <mclasen@redhat.com>
Thu, 8 Oct 2020 01:07:40 +0000 (21:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 8 Oct 2020 01:07:40 +0000 (21:07 -0400)
No need to roundtrip through the frontend to create
one of our own surfaces.

gdk/win32/gdkdevicemanager-win32.c
gdk/win32/gdkdrag-win32.c

index 1f3f2d87dbb9ba268d7170ccb68a16607cd47edf..d12666eed9dc70f71705edad01afefddfa571b9c 100644 (file)
@@ -427,7 +427,12 @@ wintab_init_check (GdkDeviceManagerWin32 *device_manager)
                            ndevices, ncursors));
 #endif
   /* Create a dummy window to receive wintab events */
-  wintab_window = gdk_surface_new_temp (display, &(GdkRectangle) { -100, -100, 2, 2 });
+  wintab_window =
+      _gdk_win32_display_create_surface (display,
+                                         GDK_SURFACE_TEMP,
+                                         NULL,
+                                         -100, -100, 2, 2);
+
   g_object_ref (wintab_window);
 
   for (devix = 0; devix < ndevices; devix++)
index 76eaf54060899c088919e54a339a277b295e976f..e8805439924cf208c2a623729cde25f2d3d6d8c8 100644 (file)
@@ -1700,7 +1700,10 @@ create_drag_surface (GdkDisplay *display)
 {
   GdkSurface *surface;
 
-  surface = gdk_surface_new_temp (display, &(GdkRectangle) { 0, 0, 100, 100 });
+  surface = _gdk_win32_display_create_surface (display,
+                                               GDK_SURFACE_TEMP,
+                                               NULL,
+                                               0, 0, 100, 100);
 
   return surface;
 }